package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

public class UserDeviceParam {
    /**
     * 设备唯一码
     */
    private String deviceCode;
    /**
     * 操作系统名称
     */
    private String osName;
    /**
     * 操作系统版本
     */
    private String osVersion;
    /**
     * 设备型号
     */
    private String model;
    /**
     * 客户端应用名称
     */
    private String clientName;
    /**
     * 客户端应用程序版本
     */
    private String clientVersion;

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getOsName() {
        return osName;
    }

    public void setOsName(String osName) {
        this.osName = osName;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserDeviceParam that = (UserDeviceParam) o;
        return Objects.equals(deviceCode, that.deviceCode) && Objects.equals(osName, that.osName) && Objects.equals(osVersion, that.osVersion) && Objects.equals(model, that.model) && Objects.equals(clientName, that.clientName) && Objects.equals(clientVersion, that.clientVersion);
    }

    @Override
    public int hashCode() {
        return Objects.hash(deviceCode, osName, osVersion, model, clientName, clientVersion);
    }
}
